package com.example.forest.sj;


import com.dtflys.forest.annotation.*;
import org.springframework.stereotype.Service;

@BaseRequest(
        baseURL = "${baseUrl}",     // 默认域名
        headers = {
                "Content-Type:application/json" ,// 默认请求头
                "Referer:thirdpartyauth",
                "timestamp:${timestamp}",
                "Auth:${auth}"

        }              // 默认单向SSL协议
)
@Service
public interface SjInterface {



    //用户列表分页
    @Post(url = "/wx/userThirdParty/userList")
    SjResponse userList(@Var("timestamp") long timestamp, @Var("auth") String auth,@Query("pageSize") String pageSize,@Query("pageNum") String pageNum);

    //用户列表不分页
    @Post(url = "/wx/userThirdParty/userListAll")
    SjResponse userListAll(@Var("timestamp") long timestamp, @Var("auth") String auth);

    //部门列表分页
    @Post(url = "/wx/userThirdParty/deptList")
    SjResponse deptList(@Var("timestamp") long timestamp, @Var("auth") String auth,@Query("pageSize") String pageSize,@Query("pageNum") String pageNum);
    //部门列表不分页

    @Post(url = "/wx/userThirdParty/deptListAll")
    SjResponse deptListAll(@Var("timestamp") long timestamp, @Var("auth") String auth);
    //单点登录
    @Post(url = "/wx/singleLoginThirdParty/checkTicket")
    SjResponse checkTicket(@Var("timestamp") long timestamp, @Var("auth") String auth,@Query("ticket") String ticket);

    //待办推送
    @Post(url = "/wx/handleWaitMsg/push")
    SjResponse push(@Var("timestamp") long timestamp, @Var("auth") String auth,@Body PushModel pushModel);



}
